.resource-detail {
    padding: 2rem 0;
    background: #f8f9fa;
    margin-top: 80px;
}

.resource-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

.resource-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource-cover img {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.resource-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-info h2 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 2rem;
    color: #222;
}

.resource-meta {
    color: #888;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.95rem;
}

.resource-tags {
    margin-bottom: 1rem;
}

.resource-tags .tag {
    display: inline-block;
    background: #e6f0fa;
    color: #1976d2;
    border-radius: 4px;
    padding: 0.2em 0.7em;
    margin-right: 0.5em;
    font-size: 0.9em;
}

.resource-actions {
    margin-top: 1.2rem;
}

.download-btn, .share-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6em 1.2em;
    margin-right: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1em;
    text-decoration: none;
    transition: background 0.2s;
}

.download-btn:hover, .share-btn:hover {
    background: #125ea2;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    margin-bottom: 0.7rem;
    color: #1976d2;
    font-size: 1.2rem;
}

.resource-toc {
    margin-left: 1.5em;
    color: #444;
    line-height: 1.8;
}

.related-resources {
    display: flex;
    gap: 1.5rem;
}

.related-resource {
    background: #f4f6fa;
    border-radius: 6px;
    padding: 1em;
    width: 180px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-resource:hover {
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
    transform: translateY(-4px) scale(1.03);
}

.related-resource img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.related-resource h4 {
    font-size: 1.1em;
    margin: 0.5em 0 0.3em 0;
    color: #1976d2;
}

.related-resource p {
    color: #666;
    font-size: 0.95em;
    min-height: 2.5em;
}

.related-link {
    display: inline-block;
    margin-top: 0.5em;
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.95em;
    transition: color 0.2s;
}

.related-link:hover {
    color: #125ea2;
}

@media (max-width: 900px) {
    .resource-container {
        padding: 1rem;
    }
    .resource-header {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .resource-header {
        flex-direction: column;
        align-items: center;
    }
    .resource-cover img {
        width: 100%;
        height: auto;
    }
    .related-resources {
        flex-direction: column;
        gap: 1rem;
    }
    .related-resource {
        width: 100%;
    }
    .resource-detail {
        margin-top: 60px;
    }
}
